const http = require("http")

const server = http.createServer()



server.on('request', (req, res) => {
    console.log("有人来了server")
    console.log(req.method, req.url)
    res.setHeader("Content-Type", "text/html; charset=utf-8")
    res.end("你好")
})

server.listen(9090, () => {
    console.log("启动服务器")
})